package com.homeinns.esserver.dataobject;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * @ClassName TestUser
 * @Description 测试类
 * @Author 樊志强
 * @Date 2018/9/29 16:07
 **/
@Document(indexName = "testuser", type = "_doc")
@Data
public class TestUser {
    @Id
    private String id;

    @Field
    private String name;

    @Field
    private Integer age;
}
